summaryrefslogtreecommitdiff
path: root/app/[lng]/evcp/(evcp)/edp-progress
diff options
context:
space:
mode:
authordujinkim <dujin.kim@dtsolution.co.kr>2025-09-04 10:46:19 +0000
committerdujinkim <dujin.kim@dtsolution.co.kr>2025-09-04 10:46:19 +0000
commit13dc007de652ce3da2a5e85d2cdccafe2288dea9 (patch)
tree37ed49bbb531adcb27aab93125efc249b2ce38be /app/[lng]/evcp/(evcp)/edp-progress
parentb67e36df49f067cbd5ba899f9fbcc755f38d4b4f (diff)
(임수민) EDP 벤더별 진척도 페이지 구현
- menu 작업 - 오류수정
Diffstat (limited to 'app/[lng]/evcp/(evcp)/edp-progress')
-rw-r--r--app/[lng]/evcp/(evcp)/edp-progress/page.tsx50
1 files changed, 50 insertions, 0 deletions
diff --git a/app/[lng]/evcp/(evcp)/edp-progress/page.tsx b/app/[lng]/evcp/(evcp)/edp-progress/page.tsx
new file mode 100644
index 00000000..12e14b98
--- /dev/null
+++ b/app/[lng]/evcp/(evcp)/edp-progress/page.tsx
@@ -0,0 +1,50 @@
+import * as React from "react"
+import { type SearchParams } from "@/types/table"
+
+import { getValidFilters } from "@/lib/data-table"
+import { DataTableSkeleton } from "@/components/data-table/data-table-skeleton"
+import { EDPProgressTable } from "@/lib/edp-progress/table/edp-progress-table"
+import { getEDPProgressLists } from "@/lib/edp-progress/service"
+import { Shell } from "@/components/shell"
+import { InformationButton } from "@/components/information/information-button"
+import { searchParamsCache } from "@/lib/edp-progress/validations"
+
+interface IndexPageProps {
+ searchParams: Promise<SearchParams>
+}
+
+export default async function IndexPage(props: IndexPageProps) {
+ const searchParams = await props.searchParams
+ const search = searchParamsCache.parse(searchParams)
+
+ const validFilters = getValidFilters(search.filters)
+
+ const promises = Promise.all([
+ getEDPProgressLists({ filters: validFilters, sort: search.sort, search: search.search, joinOperator: search.joinOperator as any }),
+ ])
+
+ return (
+ <Shell className="gap-2">
+ <div className="flex items-center justify-between space-y-2">
+ <div className="flex items-center gap-2">
+ <h2 className="text-2xl font-bold tracking-tight">벤더 진척도 현황</h2>
+ <InformationButton pagePath="evcp/edp-progress" />
+ </div>
+ </div>
+
+ <React.Suspense
+ fallback={
+ <DataTableSkeleton
+ columnCount={6}
+ searchableColumnCount={1}
+ filterableColumnCount={0}
+ cellWidths={["16rem", "8rem", "8rem", "8rem", "8rem", "8rem"]}
+ shrinkZero
+ />
+ }
+ >
+ <EDPProgressTable promises={promises} />
+ </React.Suspense>
+ </Shell>
+ )
+}